-- GENERATED SPELL FOR [Patchwork Construct] --


function spell0_27736(pUnit, Event) --@Disease Cloud,Self--
pUnit:FullCastSpellOnTarget(52525,pUnit)
pUnit:RegisterEvent('Sorts_27736', 0, 1)
end

function spell1_27736(pUnit, Event) --@Disease Cloud,Self--
pUnit:FullCastSpellOnTarget(58808,pUnit)
pUnit:RegisterEvent('Sorts_27736', 0, 1)
end

function Sorts_27736(pUnit, Event)
local choix_sorts_27736 = math.random(0, 1)
if choix_sorts_27736 == 0 then
pUnit:RegisterEvent('spell0_27736', 1, 1)
end
if choix_sorts_27736 == 1 then
pUnit:RegisterEvent('spell1_27736', 1, 1)
end
end

function mob27736_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27736', math.random(1500, 3000), 1)
end

function mob27736_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27736_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27736_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27736, 1, 'mob27736_Action')
RegisterUnitEvent(27736, 2, 'mob27736_Leave')
RegisterUnitEvent(27736, 3, 'mob27736_Kill')
RegisterUnitEvent(27736, 4, 'mob27736_Die')
